import request from '@/request/index.js';
/*获取病历列表*/
export function getMedicalCaseList(params) {
	return request.get({
		url: '/app-api/user/medical-records/list-page',
		params: params || {},
		custom: {
			title: "获取病历记录",
			authentication: true
		}
	});
}
/*获取病历详情*/
export function getMedicalCaseDetail(params) {
	return request.get({
		url: '/app-api/user/medical-records/get',
		params: params || {},
		custom: {
			title: "获取病历详情",
			authentication: true
		}
	});
}
/*新增病历*/
export function createMedicalCase(params) {
	return request.post({
		url: '/app-api/user/medical-records/create',
		data: params || {},
		custom: {
			title: "新增病历",
			authentication: true
		}
	});
}
/*新增病历*/
export function updateMedicalCase(params) {
	return request.post({
		url: '/app-api/user/medical-records/update',
		data: params || {},
		custom: {
			title: "编辑病历",
			authentication: true
		}
	});
}

/*获取我的病历列表新*/
export function getMedicalCaseListNew(params) {
	return request.get({
		url: '/app-api/collaboration/order-consultation-case/get-consultation-case-list',
		params: params || {},
		custom: {
			title: "获取我的病历列表",
			authentication: true
		}
	});
}

/*获取我的病历详情新*/
export function getMedicalCaseDetailNew(params) {
	return request.get({
		url: '/app-api/collaboration/order-consultation-case/get-consultation-case-detail',
		params: params || {},
		custom: {
			title: "获取我的病历详情",
			authentication: true
		}
	});
}